package com.woniu.common.enums;

/**
 * @author 杨光
 * @date 2021年08月12日 14:33
 */
public enum ExceptionCode {
    INVALID_KAPTCHA(100100,"验证码错误"),
    INVALID_USERNAME_PASSWORD(100101,"无效的用户名或密码"),
    JSON_CONVERTION_EXCEPTION(100102,"JSON转换异常"),
    PLAY_TIME_CONFICTION(100103,"电影播放时间冲突"),
    USER_ACCOUNT_IN_USE(100104,"用户账号已经被注册"),
    SEAT_ALREADY_SOLD(100105,"您选的座位已经售出，请重新选择"),
    NOT_ENOUGH_TICKET(100106,"余下的票已不足"),

    ;

    ExceptionCode(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    private Integer code;
    private String message;

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
